﻿using Archiecture.API.Application.Commands.DeepCommand;
using Architercture.Domain.Service.IService;
using MediatR;

namespace Archiecture.API.Application.CommandHandlers.DeepCommandHandler
{
    public class CeOperationImgCommandHandler : IRequestHandler<CeOperationImgCommand, int>
    {
        private readonly IDeepProcessService _deepService;

        public CeOperationImgCommandHandler(IDeepProcessService deepService)
        {
            _deepService = deepService;
        }

        public async Task<int> Handle(CeOperationImgCommand request, CancellationToken cancellationToken)
        {
            return await _deepService.OperationImg(request.batchCode, request.imgUrls);
        }
    }
}
